package com.cw.jeeyt.dao.mapper.process;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.common.annotation.LogParam;
import com.cw.jeeyt.dao.model.process.ActReProcdefDo;

/**
 * 流程定义 dao数据库操作接口
 *
 * @author chenw
 * @date 2019-03-13 22:15:39
 */
public interface ActReProcdefMapper {
    /**
     * 新增流程定义
     *
     * @param actReProcdef
     * @return 整数
     */
    @LogParam(logDes = "新增流程定义", operateModule = "流程定义管理")
    Integer insert(ActReProcdefDo actReProcdef);

    /**
     * 新增流程定义不为空的字段
     *
     * @param actReProcdef
     * @return 整数
     */
    @LogParam(logDes = "新增流程定义", operateModule = "流程定义管理")
    Integer insertSelective(ActReProcdefDo actReProcdef);

    /**
     * 删除流程定义
     *
     * @param actReProcdef
     */
    @LogParam(logDes = "删除流程定义", operateModule = "流程定义管理")
    void delete(ActReProcdefDo actReProcdef);

    /**
     * 修改流程定义不为null的字段
     *
     * @param actReProcdef
     */
    @LogParam(logDes = "修改流程定义", operateModule = "流程定义管理")
    void updateSelective(ActReProcdefDo actReProcdef);

    /**
     * 修改流程定义
     *
     * @param actReProcdef
     */
    @LogParam(logDes = "修改流程定义", operateModule = "流程定义管理")
    void update(ActReProcdefDo actReProcdef);

    /**
     * 根据主键查询流程定义
     *
     * @return 流程定义
     */
    ActReProcdefDo getById(@Param("id_") String id_);

    /**
     * 查询所有流程定义
     *
     * @return 流程定义集合
     */
    List<ActReProcdefDo> queryActReProcdefList();

    /**
     * 分页查询流程定义
     *
     * @param actReProcdef 查询条件
     * @return 流程定义集合
     */
    List<ActReProcdefDo> queryByPage(@Param("actReProcdef") ActReProcdefDo actReProcdef, @Param("order") Order order)
   ;
}
